/*
 * Engine.h
 *
 *  Created on: 2010-11-3
 *      Author: Administrator
 */

#ifndef ENGINE_H_
#define ENGINE_H_

#include<e32base.h>
#include<W32STD.H>
#include "BaseMenu.h"

class Canvas;
class CLoadImageList;
class CLoginMenu;
class CRocketAppView;
class CBaseFont;
class CRocketPipe;

class CEngine
	{
public:
	CEngine();
	virtual ~CEngine();
	
	Canvas* GetCanvas(){return iCanvas;};
	CLoadImageList* GetImageList(){return iImageList;};
public:
	void SysDraw(CWindowGc& aGc);
	void SysTimer();
	void SysKeyProc(TInt nApKeyCode, TInt nKeyCode, TInt nScanCode, TInt nType);
	void SysMouseProc(	TInt iType,TUint iModifiers,TPoint iPosition,TPoint iParentPosition);	
	
	void SetCurMenu(CBaseMenu* pMenu);
public:
	//Menu
	CLoginMenu* iLoginMenu;
	CBaseFont*		SysNormalFont;
	CBaseFont*		SysTitleFont;
	
	CArrayFixFlat<HBufC*>*	iTextList;
public:
	CRocketAppView* SysView;
private:
	CBaseMenu*	iCurMenu;
	Canvas* iCanvas;;
	CLoadImageList*	iImageList;
	CRocketPipe*	iRocketPipe;
	};

#endif /* ENGINE_H_ */
